package com.mida.app.knw.service;

import com.mida.dms.knw.entity.vo.KnwNoumenonRelationVo;
import com.mida.dms.knw.entity.vo.MapperPage;
import com.mida.dms.knw.vo.KnwNoumenonRelationPageVo;
import com.mida.dms.knw.vo.PageResultVo;
import com.mida.dms.knw.vo.PullDownMenuOfNoumenonVO;
import com.mida.tool.common.result.ActionResult;
import com.mida.tool.common.result.ListResult;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * <h1>本体关系服务</h1>
 * <p>
 *
 * </p>
 *
 * @author jian.li on 2021/6/22 11:32
 */
public interface KnwNoumenonRelationService {

    ActionResult add(KnwNoumenonRelationVo relation);

    ListResult<List<PullDownMenuOfNoumenonVO>> findSourceAndTarget(MapperPage knwNoumenon);

    ListResult<PageResultVo<KnwNoumenonRelationVo>> findPage(KnwNoumenonRelationPageVo vo);

    ActionResult enable(Long soid);

    ListResult<Object> findRelation(String searchData);

    ActionResult updateSingle(@RequestBody KnwNoumenonRelationVo relation);

    ActionResult delete(@RequestParam("soid") Long soid);
}
